<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@ taglib
	prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<html>
<head>
<!--
Zeke Elder - zbe@andrew.cmu.edu
Amal Chemmany - achemman@andrew.cmu.edu
Nishant Kumar - nkumar1@andrew.cmu.edu
15-637
4/2/2012
-->
<title>Welcome to FitHub!</title>
<c:if test="${user == null}">
	<c:redirect url="welcome.jsp" />
</c:if>
<link href="css/friends.css" type="text/css" rel="stylesheet">
</head>

<body>
	<!-- include header.jsp -->
	<jsp:include page="./header.jsp" flush="false" />
	<div id="maindiv" class="body_container">
		<div id="people_bar">
			<h1>Invite more people</h1>

			<div class="centered_div">
				<form action="searchInviteMember.do">
					<h2></h2>
					<input id="search_person" name="search_person" type="text">
					<input type="hidden" name="groupId" value=${groupId } /> <input
						value="Find user" id="search_person_submit" type="submit">
					</h2>
				</form>
			</div>
			<div class="centered_div" style="height: 100%; overflow: auto">
				<table>
					<tbody>
						<c:forEach var="entry" items="${userList}">
							<tr>
								<th colspan="2" class="friend_img"><img
									src="./image.do?userId=${entry.userId}" alt="jack thum">
								</th>
								<td class="friend_name">${entry.firstName}</td>
								<td class="friend_add"><a
									href="./inviteMember.do?id=${entry.userId}&groupId=${groupId}">Invite</a></td>
							</tr>
						</c:forEach>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
</html>